import request from '@/utils/request'

// 查询型号与节点关系列表
export function listModelNodeRela(query) {
  return request({
    url: '/order/modelNodeRela/list',
    method: 'get',
    params: query
  })
}

// 查询型号与节点关系详细
export function getModelNodeRela(relaId) {
  return request({
    url: '/order/modelNodeRela/' + relaId,
    method: 'get'
  })
}

// 新增型号与节点关系
export function addModelNodeRela(data) {
  return request({
    url: '/order/modelNodeRela',
    method: 'post',
    data: data
  })
}

// 修改型号与节点关系
export function updateModelNodeRela(data) {
  return request({
    url: '/order/modelNodeRela',
    method: 'put',
    data: data
  })
}

// 删除型号与节点关系
export function delModelNodeRela(relaId) {
  return request({
    url: '/order/modelNodeRela/' + relaId,
    method: 'delete'
  })
}
